package com.yanq.liancar.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.MyOBD;
import com.yanq.liancar.viewholder.ItemMyOBDViewHolder;

/**
 * Created by wyq on 2018/5/30.
 */

public class MyOBDAdapter extends BaseQuickAdapter<MyOBD.DateBean, ItemMyOBDViewHolder>{

    public MyOBDAdapter() {
        super(R.layout.item_myobd);
    }

    @Override
    protected void convert(final ItemMyOBDViewHolder helper, MyOBD.DateBean item) {
        helper.obdNum.setText("OBD:" + item.getObd());
        helper.obdCar.setText("绑定车辆：" + item.getChepai());
        helper.addOnClickListener(R.id.chakan);

    }
}
